<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>后台首页</title>
	</head>
	<body>
		<table width="100%">
			<tr>
				<td>
					<h1>图书管理系统</h1>
				</td>
				<td align="right"></td>
			</tr>
			<tr>
				<td>
				</td>
				<td align="right">
					欢迎<font color="red"> ${admin.userName}</font>回来！ <a href="admin?action=exit">退出</a>
				</td>
			</tr>
		</table>
		<hr size="5" color="blue">
		<table align="center" border="1px" width="500px" cellspacing="0px" cellpadding="5px">
		<form action="book?action=add" method="post">
		<caption><h3>添加图书</h3></caption>
		<tr align="center">
			<td>图书名称</td>
			<td><input type="text" name="name"/></td>
		</tr>
		
		<tr align="center">
			<td>图书价格</td>	
			<td><input type="text" name="price"/></td>
		</tr>
		
		<tr align="center">
			<td>图书数量</td>	
			<td><input type="text" name="counts"/></td>
		</tr>
		
		<tr align="center">
			<td>作者</td>	
			<td><input type="text" name="author"/></td>
		</tr>
		
		<tr align="center">
			<td>添加时间</td>	
			<td><input type="date" name="crtTime"/></td>
		</tr>
		
		<tr align="center">
			<td colspan=2>
				<input type="submit" value="添 加"/>
			    <input type="reset"/>
			     <a href="book?action=qryall">取消</a>
			    <span><font color="red">${msg}</font></span>
			</td>
		</tr>
		</form>
		
	</table>
		
	</body>
</html>
